package cn.edu.scau.cmi.zhonghaozheng.SingletonPattern;

public class chairman {
	private static chairman instance;
	private String name;
	private chairman(String name) {
		this.name = name;
	}
	public static chairman getInstance(String name) {
		if(instance == null && !name.equals("")) {
			instance = new chairman(name);
		}
		return instance;
	}
	public String getName() {
		return this.name;
	}
}

